package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商城轮播图
 * </p>
 *
 * @author wpdcn
 * @since 2020-01-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_banner")
public class ShopBannerEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @Column(comment = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 账户id，为0时表示平台商城的轮播图
     */
    @Column(comment = "账户id，为0时表示平台商城的轮播图rl")
    private Long accountId;

    /**
     * 图片地址
     */
    @Column(comment = "图片地址")
    private String imgUrl;

    /**
     * 标题
     */
    @Column(comment = "标题")
    private String title;

    /**
     * 说明文字,描述
     */
    @Column(comment = "说明文字,描述")
    private String description;

    /**
     * 链接
     */
    @Column(comment = "链接")
    private String link;

    /**
     * 状态：1启用；0停用
     */
    @Column(comment = "状态：1启用；0停用")
    private Integer status;

    /**
     * 排序码
     */
    @Column(comment = "排序码")
    private Integer orderNum;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createTime;

    @Column(comment = "创建人")
    private Long createBy;


}
